// Yang Shuai  Copyright (c) 2022 https://yby6.com.
// Copyright (c) 2022. Yangbuyi, personal projects are not allowed to be commercialized without permission.
// Please keep the information of the original author of the code. Thank you
//

package top.yangbuyi.common_utils.enums.weChatPayNative;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * native 支付接口枚举
 */
@AllArgsConstructor
@Getter
public enum WxApiType {

    /**
     * Native 3下单
     */
    NATIVE_PAY("/v3/pay/transactions/native"),

    /**
     * Native 2 下单
     */
    NATIVE_PAY_V2("/pay/unifiedorder"),

    /**
     * 查询订单
     * old url : /v3/pay/transactions/out-trade-no/%s
     * new url : /v3/pay/transactions/id/{transaction_id}
     */
    ORDER_QUERY_BY_NO("/v3/pay/transactions/out-trade-no/%s"),

    /**
     * 关闭订单
     */
    CLOSE_ORDER_BY_NO("/v3/pay/transactions/out-trade-no/%s/close"),

    /**
     * 申请退款
     */
    DOMESTIC_REFUNDS("/v3/refund/domestic/refunds"),

    /**
     * 查询单笔退款
     */
    DOMESTIC_REFUNDS_QUERY("/v3/refund/domestic/refunds/%s"),

    /**
     * 申请交易账单
     */
    TRADE_BILLS("/v3/bill/tradebill"),

    /**
     * 申请资金账单
     */
    FUND_FLOW_BILLS("/v3/bill/fundflowbill");


    /**
     * 类型
     */
    private final String type;
}
